﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F63 RID: 3939
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicScepterDressInUnitScRsp : IMessage<RogueMagicScepterDressInUnitScRsp>, IMessage, IEquatable<RogueMagicScepterDressInUnitScRsp>, IDeepCloneable<RogueMagicScepterDressInUnitScRsp>, IBufferMessage
	{
		// Token: 0x170031FF RID: 12799
		// (get) Token: 0x0600B096 RID: 45206 RVA: 0x001DDB10 File Offset: 0x001DBD10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicScepterDressInUnitScRsp> Parser
		{
			get
			{
				return RogueMagicScepterDressInUnitScRsp._parser;
			}
		}

		// Token: 0x17003200 RID: 12800
		// (get) Token: 0x0600B097 RID: 45207 RVA: 0x001DDB17 File Offset: 0x001DBD17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicScepterDressInUnitScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003201 RID: 12801
		// (get) Token: 0x0600B098 RID: 45208 RVA: 0x001DDB29 File Offset: 0x001DBD29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicScepterDressInUnitScRsp.Descriptor;
			}
		}

		// Token: 0x0600B099 RID: 45209 RVA: 0x001DDB30 File Offset: 0x001DBD30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterDressInUnitScRsp()
		{
		}

		// Token: 0x0600B09A RID: 45210 RVA: 0x001DDB38 File Offset: 0x001DBD38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterDressInUnitScRsp(RogueMagicScepterDressInUnitScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B09B RID: 45211 RVA: 0x001DDB5D File Offset: 0x001DBD5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterDressInUnitScRsp Clone()
		{
			return new RogueMagicScepterDressInUnitScRsp(this);
		}

		// Token: 0x17003202 RID: 12802
		// (get) Token: 0x0600B09C RID: 45212 RVA: 0x001DDB65 File Offset: 0x001DBD65
		// (set) Token: 0x0600B09D RID: 45213 RVA: 0x001DDB6D File Offset: 0x001DBD6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600B09E RID: 45214 RVA: 0x001DDB76 File Offset: 0x001DBD76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicScepterDressInUnitScRsp);
		}

		// Token: 0x0600B09F RID: 45215 RVA: 0x001DDB84 File Offset: 0x001DBD84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicScepterDressInUnitScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B0A0 RID: 45216 RVA: 0x001DDBB4 File Offset: 0x001DBDB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B0A1 RID: 45217 RVA: 0x001DDBF3 File Offset: 0x001DBDF3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B0A2 RID: 45218 RVA: 0x001DDBFB File Offset: 0x001DBDFB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B0A3 RID: 45219 RVA: 0x001DDC04 File Offset: 0x001DBE04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B0A4 RID: 45220 RVA: 0x001DDC38 File Offset: 0x001DBE38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B0A5 RID: 45221 RVA: 0x001DDC76 File Offset: 0x001DBE76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicScepterDressInUnitScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B0A6 RID: 45222 RVA: 0x001DDCA7 File Offset: 0x001DBEA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B0A7 RID: 45223 RVA: 0x001DDCB0 File Offset: 0x001DBEB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004791 RID: 18321
		private static readonly MessageParser<RogueMagicScepterDressInUnitScRsp> _parser = new MessageParser<RogueMagicScepterDressInUnitScRsp>(() => new RogueMagicScepterDressInUnitScRsp());

		// Token: 0x04004792 RID: 18322
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004793 RID: 18323
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04004794 RID: 18324
		private uint retcode_;
	}
}
